package com.hw.paltfrom.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.hw.paltfrom.filter.OverFilter;

@Configuration
public class FilterConfig {

	@Bean
	public FilterRegistrationBean buildBFilter() {
		FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
		filterRegistrationBean.setOrder(1);
		filterRegistrationBean.setFilter(new OverFilter());
		filterRegistrationBean.setName("OverFilter");
		filterRegistrationBean.addUrlPatterns("/Btfy_apps_server/*");
		filterRegistrationBean.setEnabled(false);
		return filterRegistrationBean;
	}

}
